using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    
        public class ClassTeacherConfiguration : Base.BaseEntityConfiguration<ClassTeacher>
    {
        public override void Configure(EntityTypeBuilder<ClassTeacher> builder)
        {
            base.Configure(builder);

            builder.ToTable("class_teacher");

            builder.Property(x=>x.ClassId).HasColumnName("class_id").HasColumnOrder(1);
            builder.Property(x=>x.TeacherId).HasColumnName("teacher_id").HasColumnOrder(2);
            
        }

    }
    
}